package spring.cloud.tasks.api.database.service;

import spring.cloud.tasks.api.database.entity.ZooKeeperClusterDto;

import java.util.List;

public interface ZooKeeperClusterDtoService {
    int insert(String zooKeeperClusterKey, String connectString, String digest, String description, String userId);

    int updateByZooKeeperClusterKey(ZooKeeperClusterDto zooKeeperClusterDto);

    int deleteByZooKeeperClusterKey(String zooKeeperClusterKey);

    ZooKeeperClusterDto selectByZooKeeperClusterKey(String zooKeeperClusterKey);

    List<ZooKeeperClusterDto> selectAll();

}
